<?php
$this->render('include/sortLink.phtml');
echo $this->render('resource/file/_tab.phtml');
?>
<form action="" method="post">
<div class="body">
	<table class="list">
		<tr>
			<th class="narrow sort"><?php echo __sortLink('hash', 'HASH');?></th>
			<th class="narrow sort"><?php echo __sortLink('size', 'SIZE');?></th>
			<th class="narrow sort"><?php echo __sortLink('width', 'WIDTH');?></th>
			<th class="narrow sort"><?php echo __sortLink('height', 'HEIGHT');?></th>
			<th class="narrow sort"><?php echo __sortLink('dimension', 'DIMENSION');?></th>
			<th class="narrow sort"><?php echo __sortLink('extension', 'EXT');?></th>
			<th class="time sort"><?php echo __sortLink('lastupdate', 'MODIFIED');?></th>
			<th></th>
		</tr>
		<?php foreach($this->list AS $key => $row) { ?>
		<tr>
			<td><?php echo $row->getHash();?></td>
			<td><?php echo $row->getSize();?></td>
			<td><?php echo $row->getWidth();?></td>
			<td><?php echo $row->getHeight();?></td>
			<td><?php echo $row->getDimension();?></td>
			<td><?php echo $row->getExtension();?></td>
			<td class="time"><?php echo $this->date($row->getLastupdate());?></td>
			<td></td>
		</tr>
		<?php } ?>
		<?php if(count($this->list) <= 0) {?>
		<tr>
			<td colspan="8" class="nohover">
				<div class="msg">
					<div class="common error" style="border:0;background:#fff;">
						<i class="icon"></i>
						<h4>STOP</h4>
						<div class="msg-bd">
							No File found. 
						</div>
					</div>
				</div>
			</td>
		</tr>
		<?php } ?>
	</table>
</div>
</form>
<div class="body">
	<?php echo $this->paginator($this->list)->render();?>
</div>
